﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="cadastroContasReceber.aspx.cs" Inherits="Imobitech.Gestao.cadastroContasReceber" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
    </asp:ScriptManager>
    <fieldset>
        <div class="alert-message block-message">
            <div class="success" id="sucesso" runat="server">
                <
            </div>
            <div class="error" id="error" runat="server">
            </div>
        </div>
        <div class="clearfix">
            <label>
                Tipo da conta:
            </label>
            <div class="input">
                <asp:DropDownList ID="ddlTipo" runat="server" CssClass="xlarge" OnSelectedIndexChanged="ddlTipo_SelectedChanged"
                    AutoPostBack="true">
                    <asp:ListItem Text="Unitário" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Mensal" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Anual" Value="3"></asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="clearfix">
            <label>
                Tipo da conta:
            </label>
            <div class="input">
                <asp:DropDownList ID="ddlCategoria" runat="server" CssClass="xlarge">
                </asp:DropDownList>
            </div>
        </div>
        <div class="clearfix">
            <label>
                Descricao:
            </label>
            <div class="input">
                <asp:TextBox ID="txtDescricao" runat="server" CssClass="xlarge"></asp:TextBox>
            </div>
        </div>
        <asp:UpdatePanel ID="updParcelas" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="clearfix">
                    <label>
                        Número de Parcelas:
                    </label>
                    <div class="input">
                        <asp:TextBox ID="txtParcelas" runat="server" CssClass="xlarge" OnTextChanged="txtParcelas_TextChanged"
                            AutoPostBack="true">
                        </asp:TextBox>
                    </div>
                </div>
                <div class="clearfix">
                    <label>
                        Parcelas:
                    </label>
                    <div class="input">
                        <div id="pnlParcelas" runat="server">
                        </div>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="input">
                        <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" OnClick="btnCadastrar_Click" />
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="txtParcelas" EventName="TextChanged" />
                <asp:AsyncPostBackTrigger ControlID="btnCadastrar" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </fieldset>
</asp:Content>
